package com.mercycrazy.recruit.util.jwt;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 映射远程配置中心 JWT 相关配置的 Bean
 *
 * @author <a href="mailto:1443424326@qq.com">mercycrazy</a>
 * @since 2023-01-16
 */
@Configuration
@RefreshScope
@Getter
public class JWTProperties {

    @Value("${jwt.auth.secretKey}")
    private String secretKey;

    @Value("${jwt.auth.expire}")
    private int expire;
}
